﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BA2009.Entities;
using BA2009.Data.DataAccess;

namespace BA2009.Services
{
    public class BannerService : ServiceBase<Banner>, IBannerService
    {
        public BannerService(IRepository<Banner> repository)
        {
           
            this.repository = repository;
        }

        //public BannerService()
        //    : this(null)
        //{ }

       
        public IList<BannerType> GetAllBannerTypes()
        {
            return new ValueNameRepository<BannerType>().FindAll().ToList();
        }


        public IList<Resource> GetResources()
        {
            return new ResourceRepository().FindAll().ToList();
        }

        public IList<BannerPosition> GetPositions()
        {
            return new BannerPositionRepository().FindAll().ToList();
        }

      

      
    }
}
